import { lazy } from 'react';
import { LayersIcon } from 'tdesign-icons-react';
import { IRouter } from '../index';

const result: IRouter[] = [
  {
    path: '/course',
    meta: {
      title: '课程管理',
      Icon: LayersIcon,
    },
    children: [
      {
        path: 'list',
        Component: lazy(() => import('pages/Detail/Advanced')),
        meta: { title: '课程列表' },
      },
      {
        path: 'add',
        Component: lazy(() => import('pages/Detail/Add')),
        meta: { title: '增加课程' },
      },
    ],
  },
];

export default result;
